package org.dreamwork.cai.srf;

import org.dreamwork.util.IConverter;

import java.io.Serializable;

public class ParameterInfo implements Serializable {
    public final String type;

    private String name;
    private String description;

    public transient final Class<?> javaType;

    private transient Class<? extends IConverter> converter;

    public ParameterInfo (Class<?> javaType) {
        this.javaType = javaType;
        this.type = javaType.getName ();
    }

    public String getName () {
        return name;
    }

    public void setName (String name) {
        this.name = name;
    }

    public String getDescription () {
        return description;
    }

    public void setDescription (String description) {
        this.description = description;
    }

    public Class<? extends IConverter> getConverter () {
        return converter;
    }

    public void setConverter (Class<? extends IConverter> converter) {
        this.converter = converter;
    }
}